package com.xn.app.muying;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.xn.app.muying.util.Constants;

public class ZhangHuActivity extends AppCompatActivity {
    Button xiu_gai_mima,tui_chu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhang_hu);
        xiu_gai_mima = (Button) findViewById(R.id.xiu_gai_mima);
        findViewById(R.id.guan_bi).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        tui_chu= (Button) findViewById(R.id.tui_chu);
        xiu_gai_mima.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ZhangHuActivity.this, YanZhengActivity.class);
                intent.putExtra("tag", "1");
                startActivity(intent);
            }
        });
        tui_chu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ZhangHuActivity.this, DengLuActivity.class);
                startActivity(intent);
                Constants.setBooleanByName(ZhangHuActivity.this,"isLogin",false);
                finish();
                MainActivity.mActivity.finish();
            }
        });
    }
}